﻿#coding=utf-8
from django import forms

AllLabel=()

class article(forms.Form):
	title = forms.CharField(max_length=100,label='标题',error_messages={'required': '请填写标题'})
	label = forms.CharField(max_length=20,label='选择标签',required=False)
	newLabel = forms.CharField(max_length=20,label='新建标签',required=False)
	content= forms.CharField(widget=forms.Textarea(),label='内容',required=False)
	
	#def __init__(self,myChoice):
	#	forms.Form.__init__(self)
	#	self.fields['label'].widget=forms.Select(choices=myChoice)
